package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Data
@Entity
@Table(name = "T_DATA_RECEIVABLE")
public class ReceivableEntity extends BaseEntity {
	@Id
	@Column(name = "ID",length = 11)
	@TableId(value = "Id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
	@ApiModelProperty(value="id")
	private Long id;
	@Column(name = "time_level", length = 50)
	private String timeLevel;
	//最小应收数
	@Column(name = "min_file_num", length = 50)
	private Integer minFileNum;
}
